# Copyright 2007 pyPayPal Dev Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 only
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

API_VERSION = '3.2'

VALID_STATES = {
'Alberta'                       : 'AB',
'British Columbia'              : 'BC',
'Manitoba'                      : 'MB',
'New Brunswick'                 : 'NB',
'Newfoundland and Labrador'     : 'NF',
'Northwest Territories'         : 'NT',
'Nova Scotia'                   : 'NS',
'Nunavut'                       : 'NU',
'Ontario'                       : 'ON',
'Prince Edward Island'          : 'PE',
'Quebec'                        : 'QC',
'Saskatchewan'                  : 'SK',
'Yukon'                         : 'YK',
'American Samoa'                : 'AS',
'Alabama'                       : 'AL',
'Alaska'                        : 'AK',
'Arizona'                       : 'AZ',
'Arkansas'                      : 'AR',
'California'                    : 'CA',
'Colorado'                      : 'CO',
'Connecticut'                   : 'CT',
'Delaware'                      : 'DE',
'District of Columbia'          : 'DC',
'Federated States of Micronesia': 'FM',
'Florida'                       : 'FL',
'Georgia'                       : 'GA',
'Guam'                          : 'GU',
'Hawaii'                        : 'HI',
'Idaho'                         : 'ID',
'Illinois'                      : 'IL',
'Indiana'                       : 'IN',
'Iowa'                          : 'IA',
'Kansas'                        : 'KS',
'Kentucky'                      : 'KY',
'Louisiana'                     : 'LA',
'Maine'                         : 'ME',
'Marshall Islands'              : 'MH',
'Maryland'                      : 'MD',
'Massachusetts'                 : 'MA',
'Michigan'                      : 'MI',
'Minnesota'                     : 'MN',
'Mississippi'                   : 'MS',
'Missouri'                      : 'MO',
'Montana'                       : 'MT',
'Nebraska'                      : 'NE',
'Nevada'                        : 'NV',
'New Hampshire'                 : 'NH',
'New Jersey'                    : 'NJ',
'New Mexico'                    : 'NM',
'New York'                      : 'NY',
'North Carolina'                : 'NC',
'North Dakota'                  : 'ND',
'Northern Mariana Islands'      : 'MP',
'Ohio'                          : 'OH',
'Oklahoma'                      : 'OK',
'Oregon'                        : 'OR',
'Palau'                         : 'PW',
'Pennsylvania'                  : 'PA',
'Puerto Rico'                   : 'PR',
'Rhode Island'                  : 'RI',
'South Carolina'                : 'SC',
'South Dakota'                  : 'SD',
'Tennessee'                     : 'TN',
'Texas'                         : 'TX',
'Utah'                          : 'UT',
'Vermont'                       : 'VT',
'Virgin Islands'                : 'VI',
'Virginia'                      : 'VA',
'Washington'                    : 'WA',
'West Virginia'                 : 'WV',
'Wisconsin'                     : 'WI',
'Wyoming'                       : 'WY',
'Armed Forces Americas'         : 'AA',
'Armed Forces'                  : 'AE',
'Armed Forces Pacific'          : 'AP',
}

MAX_VALUE=10,000
MIN_VALUE=0.01

VALID_CARDS = [
    'Visa',
    'MasterCard',
    'Discover',
    'Amex',
    'Switch',
    'Solo']
    
VALID_CURRENCIES = [
    'USD',
    'AUD',
    'CAD',
#    'CHF',
#    'DKK',
    'EUR',
    'GBP',
#    'HKD',
#    'HUF',
    'JPY',
#    'NOK',
#    'NZD',
#    'PLN',
#    'SEK',
#    'SGD'
]

# Maximum Lengths as specified by paypal
MAX_LEN = {
    'DESC'              :  127,
    'CUSTOM'            :  256,
    'INVNUM'            :  127,
    'NOTIFYURL'         : 2048,
    'L_NAME'            :  127,
    'L_NUMBER'          :  127,
    'CVV2'              :    4,
    'EMAIL'             :  127,
    'STREET2'           :  100,
    'PHONENUM'          :   20,
    'SHIPTONAME'        :   32,
    'SHIPTOSTREET'      :  100,
    'SHIPTOCITY'        :   40,
    'SHIPTOSTATE'       :   40,
    'SHIPTOZIP'         :    5,
    'SHIPTOCOUNTRYCODE' :    2,
    'SHIPTOSTREET2'     :  100,
    'SHIPTOPHONENUM'    :   20,
    }


    

    

